You are here: Edit Mode > Using Layers > Using Masks with Layers

Using Masks with Layers

Layer masks allow you to control a layer's level of transparency. While it is easy to control the opacity of a layer globally using the Opacity slider, layer masks are useful when you want to target a particular part of a layer. Use layer masks to hide or reveal portions of the layer beneath. Layer masks are effective for combining multiple images into a single image or for making localized adjustments.

The easiest way to understand layer masks may be to think of them in the following ways:

A white layer mask completely covers the layer below it. As you paint on the white layer mask with a black brush, you are brushing "holes" through the mask, allowing you to see through to the layer below. Conversely, a black layer mask is transparent and completely displays the layer below it. As you paint on the black layer mask with a white brush, you are masking the image, covering the layer below.

To Create a Layer Mask:

Do one of the following:

The layer mask will appear as a white or black box in the Layers pane next to the thumbnail of the image on the layer you selected. To perform actions to the layer mask, you must select it in the Layers pane. You can alter the opacity of the layer mask by dragging the Opacity slider at the top of the Layers pane. You can apply any Edit mode adjustment to the layer mask by selecting it and entering the tool.

Selected white layer mask

Selected black layer mask

Mask Properties

You can adjust the properties of each layer mask on each layer individually using the Mask Properties panel. The adjustments you make are non-destructive, meaning that you can adjust them at any time throughout the editing process.

To Access the Mask Properties Panel:

Select the mask in the Layers pane. The Mask Properties will appear at the bottom of the pane, above Adjustment Layers.

You can make the following adjustments to your layer mask:

Feathering

You can non-destructively feather your mask to avoid sharp edges or a stark contrast between the mask and the layer. Move the slider to blur the edges of the mask.

Invert

You can non-destructively invert your mask. This will turn a white mask black, and a black mask white.

Displaying a Mask Overlay:

You can make your mask easier to see by enabling the Show Overlay checkbox in the Mask Properties panel.

To Customize the Mask Overlay:

  1. Right-click on the mask in the Layers pane and choose Mask Overlay Options...
  2. In the Mask Overlay Options dialog, select one of the following overlay options:
  3. Mask Highlighted

    This option highlights your mask in the color of your choosing. Select a color from the drop-down menu. You can customize the transparency of the mask overlay by using the Opacity slider.

    Mask Exposed

    This option highlights the non-masked areas of your layer in the color of your choosing. Select a color from the drop-down menu. You can customize the transparency of the unmasked area by using the Opacity slider.

  4. Press OK.

The mask overlay is only visible when the layer is selected.

To Edit a Layer Mask:

Select the layer mask in the Layers pane, then choose any adjustment, or drawing or selection tool.

Mask Flexibility:

You can create or modify selections from masks.

To Create a Layer Mask from a Selection:

You can make a layer mask from a selection.

  1. Make a selection.
  2. Go to Layer | Mask | From Selection.

Or:

  1. Make a selection.
  2. Press the Add layer mask button. Or add any adjustment layer by selecting one of the icons from the bottom of the Layers pane. A mask will automatically be made from the selection.

To Add a Mask to a Selection:

  1. With the mask selected in the Layers pane, make a selection.
  2. Right-click the mask and choose Add Mask To Selection.

To Subtract a Mask from a Selection:

  1. With the mask selected in the Layers pane, make a selection.
  2. Right-click the mask and choose Subtract Mask From Selection.

To Select the Area Common to the Mask and the Selection:

  1. With the mask selected in the Layers pane, make a selection.
  2. Right-click the mask and choose Intersect Mask With Selection.

To Delete Selected Mask Pixels:

See Using Selections.

 

See also: